package com.sun.wanandroid.net

import com.sun.module_common.model.UserInfo
import com.sun.module_network.HttpResult

/**
 *@author:sunc
 *@time :2025/7/30 15:59
 *@desc: 描述
 */
class HttpRepository {

    companion object {
        val instance: HttpRepository by lazy { HttpRepository() }
    }

    suspend fun login(userName: String, passWord: String): HttpResult<UserInfo?> =
        ApiService.getInstance().login(userName, passWord)


    suspend fun register(userName: String, passWord: String, repassWord: String) : HttpResult<UserInfo?> =
        ApiService.getInstance().register(userName, passWord, repassWord)
}